#ifndef COBJECT_H
#define COBJECT_H

#include <QObject>
#include "cconstdefinition.h"

namespace cooking {

class CObject : public QObject
{
    Q_OBJECT
    Q_PROPERTY(bool valid READ valid WRITE setValid NOTIFY validChanged)
    Q_PROPERTY(int id READ id WRITE setId NOTIFY idChanged)
public:
    explicit CObject(QObject *parent = 0);
    bool valid() const;
    void setValid(bool valid);

    int id() const;
    void setId(int id);

signals:
    void validChanged();
    void idChanged();

public slots:

private:
    bool m_valid;
    int m_id;
};
} // namespace cooking
#endif // COBJECT_H
